package cn.datax.service.data.market.table.feign;

import cn.datax.service.data.market.table.entity.DataTableEntity;
import cn.datax.service.data.market.table.feign.factory.DataTableServiceFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "dataTableServiceFeign", value = "datax-service-data-market", fallbackFactory = DataTableServiceFeignFallbackFactory.class)
public interface DataTableServiceFeign {

    @GetMapping("/inner/DataTable/{id}")
    DataTableEntity getDataResourceById(@PathVariable("id") String id);

    @GetMapping("/inner/DataTable/release/list")
    List<DataTableEntity> getReleaseDataResourceList();
}
